package Java基础.基础语法;

import com.sun.org.apache.bcel.internal.generic.NEW;

import java.util.HashMap;

public class 符号关键字运算符 {
    /**
     * 1.defaule 1.8新加入的关键字
     * 2.变量的三要素 类型 名字 值
     * 3.
     */
    public static void main(String[] args){
//        char a = 65534;//这货2字节
//        int b = 999999999;
//        System.out.println(a);
//        testtreenumber t  = new testtreenumber();
//        t.add(1,5);
//        int ni = 1;
//        System.out.println(ni+=1.1);//下降不是上升
        int a = 2;
        System.out.println(a<<16);
        for (int i=0;i<=32;i++){
            System.out.println("i="+i+" 移动后" +(a<<i));
            System.out.println("i="+i+" →移动后" +(a>>i));
        }
        System.out.println(a>>64);
        Integer in = 10;
        in.getClass();
        int ina = 10;
        int[] aq = {1,2};
        System.out.println(aq);
    }
}
class testtreenumber{
    int n = 10;
    int[] tree = new int[n];
    void add(int i, int x){
        for (;i <= n; i += i & -i) tree[i] += x;
    }
    int sum(int i){
        int ret = 0;
        for(; i>=0; i -= i & -i)ret +=tree[i];
        return ret;
    }
}
